﻿using UnityEngine;
using System.Collections;

namespace QFramework.Pacman
{
	/// <summary>
	/// 移动组件
	/// </summary>
	public class Move : MonoBehaviour
	{

		public float speed;

		// Update is called once per frame
		void Update()
		{
			transform.Translate(Vector3.left * speed * Time.deltaTime);
		}

		void OnTriggerEnter2D(Collider2D col)
		{
			Destroy(gameObject);
		}
	}
}